/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model.service.impl;

import model.dao.CedulaVotacionDao;
import model.service.CedulaVotacionService;
import model.bean.CedulaVotacion;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Archivo CedulaVotacionServiceImpl.java
 * @Fecha                @Autor   @Cambios
 * 21/01/2011 04:32:43 PM       moshiro
 */
@Service
public class CedulaVotacionServiceImpl implements CedulaVotacionService {

    @Autowired
    private CedulaVotacionDao cedulaVotacionDao;

    @Override
    public Long agregarCedulaVotacion(CedulaVotacion cedulaVotacion) throws Exception {
        return cedulaVotacionDao.agregarCedulaVotacion(cedulaVotacion);
    }

    @Override
    public Integer modificarCedulaVotacion(CedulaVotacion cedulaVotacion) throws Exception {
        return cedulaVotacionDao.modificarCedulaVotacion(cedulaVotacion);
    }

    @Override
    public Integer eliminarCedulaVotacion(Long codigo) throws Exception {
        return cedulaVotacionDao.eliminarCedulaVotacion(codigo);
    }

    @Override
    public List<CedulaVotacion> listarCedulaVotacion(CedulaVotacion cedulaVotacion) throws Exception {
        return cedulaVotacionDao.listarCedulaVotacion(cedulaVotacion);
    }
}
